<?php get_header(); ?>

<div id="body-container">
	<div id="latest-entry">
 <?php if (have_posts()) : ?>
               <?php while (have_posts()) : the_post(); update_post_caches($posts); ?>


<?php if ((function_exists('the_meta_image')) ) { ?> 
<?php the_meta_image(); ?>
<?php } ?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
		<span class="date"><?php the_time('d.m.y') ?></span>
		<div class="clear"></div>
		
		<?php the_content('Read the rest of this entry &raquo;'); ?>
		
		<?php if(function_exists("the_tags")) : ?>
		<div class="info">	
			<span class="tag"><?php the_tags() ?></span>
		</div>
		<?php endif; ?>

<?php endwhile; ?>


<?php comments_template(); ?>


		
		<?php else : ?>

		<h2 class="center">Not Found</h2>
		<p class="center">Your search returned no results. <a href="<?php echo get_settings('home'); ?>">Return to the homepage</a> or try a different search.</p>
		
	<?php endif; ?>	
	

	</div>

	<div id="sidebarwrap">
	
	<p class="postinfo">
		<span class="author">Posted by <?php the_author_posts_link(); ?>.</span><br />
		<span class="calendar"><?php the_time('d F Y  ') ?> at <?php the_time() ?></span><br />
		<span class="comment"> <?php comments_number('No comment','1 comment','% comments'); ?></span><br />
		<span class="folder"><?php the_category(', ') ?> </span><br />
		<span class="rss"><?php comments_rss_link('comments feed'); ?>.  </span><br />
		<?php trackback_rdf(); ?>

	

	</p>
		
		<div id="asides">
			<?php include (TEMPLATEPATH . '/asides.php'); ?>
		</div>
		<?php include (TEMPLATEPATH . '/sidebar3.php'); ?>
		<?php get_sidebar(); ?>
		<?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
	</div><!-- /sidebarwrap -->

<?php get_footer(); ?>
